<?php

namespace app\controllers;

use app\models\Admin;
use common\domain\base\RestBaseController;
use common\models\BkAdmin;

class AdminController extends RestBaseController
{
    public $modelClass = 'app\models\Admin';

    public function actions(): array
    {
        $actions = parent::actions();

        unset(
            $actions['delete'],
            $actions['create'],
        );

        return $actions;
    }

    public function actionCs(){

        $ad = BkAdmin::find()->one();
        return $ad->toArray();
    }

}
